from pylab import*
import GUI5
import Tkinter, Tkconstants, tkFileDialog, tkMessageBox
import import_network

root = Tk()

# create a menu
menu = Menu(root)
root.config(menu=menu)

filemenu = Menu(menu)
menu.add_cascade(label="Networks", menu=filemenu)
filemenu.add_command(label="Create a new Network", command=callback)
filemenu.add_command(label="Import a Network", command=Open)
filemenu.add_separator()
filemenu.add_command(label="Exit", command=callback)

helpmenu = Menu(menu)
menu.add_cascade(label="Help", menu=helpmenu)
helpmenu.add_command(label="How to create Network", command=h_createNtw)
w = Canvas(root, width=500, height=500)
#w.config(scrollregion=w.bbox(ALL))
w.pack()

#w.create_line(0, 0, 200, 100)
#w.create_line(0, 100, 200, 0, fill="red", dash=(4, 4))

#w.create_rectangle(50, 25, 150, 75, fill="blue")
node=w.create_oval(50,50,60,60,fill='red', activefill='green', tags='n1')
w.tag_bind(node, "<Button-1>", node_click)
root.mainloop()
